<script setup lang="ts">
const props = defineProps(["num","userName","onUpdate:userName"]);
const emits = defineEmits(["update:num"]);
</script>

<template>
    <h3>Child</h3>
    <p @click="emits('update:num',num+1)">num:{{num}}</p>
    <p @click="props['onUpdate:userName'](userName+'?')">userName:{{userName}}</p>
</template>

<style scoped>

</style>